package com.ktgj.customer.service.impl;

import java.util.List;

import com.ktgj.common.core.constant.CustomerConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CustomerCardRecordMapper;
import com.ktgj.customer.domain.CustomerCardRecord;
import com.ktgj.customer.service.ICustomerCardRecordService;

/**
 * 会员购卡未执行记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-14
 */
@Service
public class CustomerCardRecordServiceImpl implements ICustomerCardRecordService 
{
    @Autowired
    private CustomerCardRecordMapper customerCardRecordMapper;

    /**
     * 查询会员购卡未执行记录
     * 
     * @param recordId 会员购卡未执行记录ID
     * @return 会员购卡未执行记录
     */
    @Override
    public CustomerCardRecord selectCustomerCardRecordById(Long recordId)
    {
        return customerCardRecordMapper.selectCustomerCardRecordById(recordId);
    }

    /**
     * 查询会员购卡未执行记录列表
     * 
     * @param customerCardRecord 会员购卡未执行记录
     * @return 会员购卡未执行记录
     */
    @Override
    public List<CustomerCardRecord> selectCustomerCardRecordList(CustomerCardRecord customerCardRecord)
    {
        return customerCardRecordMapper.selectCustomerCardRecordList(customerCardRecord);
    }

    /**
     * 新增会员购卡未执行记录
     * 
     * @param customerCardRecord 会员购卡未执行记录
     * @return 结果
     */
    @Override
    public int insertCustomerCardRecord(CustomerCardRecord customerCardRecord)
    {
        return customerCardRecordMapper.insertCustomerCardRecord(customerCardRecord);
    }

    /**
     * 修改会员购卡未执行记录
     * 
     * @param customerCardRecord 会员购卡未执行记录
     * @return 结果
     */
    @Override
    public int updateCustomerCardRecord(CustomerCardRecord customerCardRecord)
    {
        return customerCardRecordMapper.updateCustomerCardRecord(customerCardRecord);
    }

    /**
     * 批量删除会员购卡未执行记录
     * 
     * @param recordIds 需要删除的会员购卡未执行记录ID
     * @return 结果
     */
    @Override
    public int deleteCustomerCardRecordByIds(Long[] recordIds)
    {
        return customerCardRecordMapper.deleteCustomerCardRecordByIds(recordIds);
    }

    /**
     * 删除会员购卡未执行记录信息
     * 
     * @param recordId 会员购卡未执行记录ID
     * @return 结果
     */
    @Override
    public int deleteCustomerCardRecordById(Long recordId)
    {
        return customerCardRecordMapper.deleteCustomerCardRecordById(recordId);
    }

    /**
     * 未执行记录信息列表
     * */
    @Override
    public List<CustomerCardRecord> customerCardRecordList(Long id) {
        List<CustomerCardRecord> customerCardRecords = customerCardRecordMapper.customerCardRecordList(id);
        return customerCardRecords;
    }
}
